package com.exercise;

public class PhoneTest {
    public static void main(String[] args) {
        PhoneA phone = new PhoneA();
        phone.brand = "华为";
        phone.model = "保时捷";

        phone.desc();
        phone.setPrice(100.0);
        phone.discount = 0.85;
        phone.newPrice();
        System.out.println("-----------------------------------------");

        PhoneB phoneb = new PhoneB();
        phoneb.brand = "苹果";
        phoneb.model = "苹果7";
        phoneb.color = "白色";
        phoneb.discount = 0.5;
        phoneb.setPrice(1200.0);
        phoneb.desc();
        phoneb.newPrice();
    }
}
